using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
using System.Data;

using PlugNT.Safe;
using PlugNT.Database;
using PlugNT.Database.Common.Simple;
using PlugNT.Cms.Custom;
using PlugNT.App.Payment.Model;

namespace PlugNT.App.Payment.BLL
{
    public class Payonline 
    {

        private static readonly PlugNT.App.Payment.DAL.Payonline dal = new PlugNT.App.Payment.DAL.Payonline();


        public static int GetMaxId()
        {
            return dal.GetMaxId();
        }

        public static string GetName(int id)
        {
            return dal.GetName(id).Trim();
        }


        public PayonlineInfo GetPayonlineInfo(int id)
        {
            return dal.GetPayonlineInfo(id);

        }


        public bool Add(PayonlineInfo model)
        {
            return dal.Add(model);
        }

        public bool Update(PayonlineInfo model)
        {
            return dal.Update(model);
        }

        public bool Delete(int id)
        {
            return dal.Delete(id);
        }



        public DataTable GetList(string andWhere)
        {
            return dal.GetList(andWhere);
        }



 


    }
}

